// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router'
// 导入路由对应的组件
import App from '../App.vue'
import cdl from '../views/u_菜单栏.vue'
 
const routes = [
  {
    path: '/',
    name: 'App',
    component: App
  },
  {
    path: '/cdl',
    name: 'cdl',
    component: cdl
  }
]
 
const router = createRouter({ 
  history: createWebHistory(process.env.BASE_URL),
  routes
})
 
export default router